package com.wy.dao;

import com.wy.pojo.CountHistory;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CountHistoryDao {
    List<CountHistory> getCountHistoryByDateRange(@Param("startDate") String startDate, @Param("endDate") String endDate);
    @Insert("INSERT INTO count_history (date, student_count, teacher_count, open_course_count, approval_untreated_count) VALUES (#{date}, #{studentCount}, #{teacherCount}, #{openCourseCount}, #{approvalUntreatedCount})")
    void insertCountHistory(CountHistory countHistory);
}
